<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/FCKEdit" prefix="fck"%>
<%@ include file="/jsp/admintop.jsp"%>
<%@ include file="/jsp/jscommom.jsp"%>
<%@ include file="/jsp/viewtop.jsp"%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>新闻发布</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>

	<script type="text/javascript">
function domethod(){
if(document.all.userId.value==""){
alert("必须选择管理用户!");
return;
}

if(document.all.popeDescript.value==""){
alert("角色描述不能为空!");
return;
}
var popeString;
	for(var i=0;i<document.all.mcheck.length;i++){
		if(document.all.mcheck[i].checked){
			if(i==0){
			popeString =document.all.mcheck[i].value;
			}else{
			popeString +=";"+document.all.mcheck[i].value;
			}
		}
	}
document.all.method.value="add";
document.forms[0].popeList.value=popeString;
document.forms[0].submit();
document.all.method.value="";
}
</script>
	<body>
		<html:form action="/system/admin/popedom/allotpopedom" method="post"
			onsubmit="return domethod()">
			<html:hidden property="method" />
			<html:hidden property="popeList" />
			<div align="center">
				<table width="97%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">

					<tr>
						<td class="titlebg" colspan="4">
							权限分配管理
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1">
							管理用户
						</td>
						<td class="mtdtextleft">
							<html:select property="userId" styleClass="input1">
								<logic:notPresent name="userList">
									<html:option value="">无管理用户</html:option>
								</logic:notPresent>
								<logic:present name="userList">
									<logic:iterate id="userList" name="userList"
										type="com.ibatis.po.system.TSysAdmin">
										<html:option value="${userList.id}">${userList.name}</html:option>
									</logic:iterate>
								</logic:present>

							</html:select>
						</td>
                        
                        <td class="mtdtitle1">
                        状态
                        </td>
						<td class="mtdtextleft">
							<html:select property="status" styleClass="input1">
								<html:option value="1">
									有效
								</html:option>
								<html:option value="0">
									无效
								</html:option>
							</html:select>
						</td>
					</tr>
					<tr>
						<td class="mtdtitle1">
							角色描述
						</td>

						<td class="mtdtextleft" colspan="3">
							<html:text property="popeDescript" styleClass="input1"></html:text>
						</td>

					</tr>
					<tr>
						<td colspan="4">
							<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
								<tr>
									<td class="titlebg">
										权限选择
									</td>
								</tr>

								<tr>
									<td class="mtdtitle1">
										<input type="checkbox" name="mcheck" value="xtgl" />
										系统管理
									</td>
								</tr>
								<tr>
									<td>
									<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
									<tr>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck" value="/system/admin/system/setpass" />
										修改密码
										</td>
										<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/login.do?pal=adminLogout" />
										退出系统
									</td>
										</tr>
										</table>
									</td>
								</tr>


								<tr>
									<td class="mtdtitle1">
										<input type="checkbox" name="mcheck" value="xwgl" />
										新闻管理
									</td>
								</tr>
								<tr>
									<td>
									<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
									<tr>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/news/viewnewsissue" />
										新闻发布
										</td>
										</tr>
										</table>
									</td>
								</tr>



								<tr>
									<td class="mtdtitle1">
										<input type="checkbox" name="mcheck" value="qzgl" />
										求职管理
									
									</td>
								</tr>
								<tr>
									<td>
									<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
									<tr>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck" value="/system/admin/usermanage/viewuserlist" />
										求职者管理
										</td>
										</tr>
										</table>
									</td>
								</tr>

								<tr>								
									<td class="mtdtitle1">
										<input type="checkbox" name="mcheck" value="qygl" />
										企业管理
									</td>
								</tr>
								<tr>
									<td>
									<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
									<tr>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/com/struts/system/recommend" />
										企业推荐管理
										</td>
										<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/copormanage/approvecorporlist" />
										企业批准管理
										</td>
										<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/com/struts/system/queryblack" />
										黑名单管理
									</td>
										</tr>
									<tr>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/copormanage/activity" />
										活动管理
										</td>
										<td class="mtdtextleft">

										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/copormanage/approvebooth" />
										展位批准
									</td>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/copormanage/viewbooth" />
										展位浏览
									</td>
										</tr>
										</table>
									</td>
								</tr>
								
								<tr>
								<td>
								<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
					<tr>
					<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/com/struts/system/corpormanage" />
										企业管理
										</td>
										<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/recommenduser/querycorpor" />
										求职者推荐
										</td>
										</tr>
										</table>
									</td>
								</tr>


								<tr>
									<td class="mtdtitle1">
										<input type="checkbox" name="mcheck" value="qxgl" />
										权限管理
									</td>
								</tr>
								<tr>
									<td>
									<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
									<tr>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/popedom/usermanage" />
										用户管理
										</td>
										<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/popedom/popedomlist" />
										权限分配
									</td>
										</tr>
										</table>
									</td>
								</tr>
								
								<tr>
									<td class="mtdtitle1">
										<input type="checkbox" name="mcheck" value="gzgwgl" />
										工作岗位管理
									</td>
								</tr>
								<tr>
									<td>
									<table width="100%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
									<tr>
									<td class="mtdtextleft">
										&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="mcheck"
											value="/system/admin/stationmanage/viewkindofsta" />
										岗位配置
										</td>
										</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>



					<tr>
						<td colspan="4" class="mtdtitle1">
							<input type="button" value="提交" class="tbutton"
								onclick="domethod()" />
							<input type="button" onclick="window.close();" value="关闭"
								class="tbutton" />
						</td>
					</tr>
				</table>
			</div>
		</html:form>
	</body>
</html>
